<?php

//一些系统配置,比如微信,支付宝,oss,百度等sdk的配置文件
return [
    'upload' => [
        'type' => 'local',//上传存储地方,支持local(本地磁盘),ali_oss(阿里云oss)
        'ext'  => ['png','jpg','jpeg','gif','apk','mp4','zip','exe'], //允许的后缀
        'path' => app()->getRootPath() .'public/',//上传的路径,仅在type=local下有效(结尾请带/)
        'url'  => '',//上传url的地址，不存在时默认获取当前上传的url(结尾请带/)
    ],

    //阿里oss上传配置
    'ali_oss' => [
        'access_key_id'     => '',
        'access_key_secret' => '',
        'endpoint'          => '',
        'bucket_name'       => '',
        'url'               => ''
    ],
    /*
    'ali_oss' => [
        'access_key_id'     => 'LTAI4GCdYx8f2KSH3XesX3WZ',
        'access_key_secret' => 'zPAPmQuoZ51npuhpXgKIxelDge8eib',
        'endpoint'          => 'oss-cn-beijing.aliyuncs.com',
        'bucket_name'       => 'myytx',
        'url'               => 'https://ytx-file.110route.cn/'
    ],
     * */

    //rpc client 配置
    'rpc_client' => [
        'ip'       => '127.0.0.1', //可为空,不传默认使用域名自动解析
        'host'     => 'wanghao-tp6base.te6-api.net',
    ],

];